package com.zut.service;

import com.zut.entity.PageResult;
import com.zut.entity.QueryPageBean;
import com.zut.pojo.CheckGroup;

import java.util.List;

/**
 * @author sq
 * @create 2021-06-24-11:20
 */
public interface CheckGroupService {
    //添加检查组
    public void add(CheckGroup checkGroup, Integer[] checkitemIds);

    //分页查询
    public PageResult pageQuery(QueryPageBean queryPageBean);

    //根据id查询检查组
    public CheckGroup findById(Integer id);

    //根据检查组id查询其中包含的检查项id
    public List<Integer> findCheckItemIdsByCheckGroupId(Integer id);

    //编辑检查组
    public void edit(CheckGroup checkGroup, Integer[] checkitemIds);

    //根据id删除检查组
    public void deleteById(Integer id);

    //查询所有检查组
    public List<CheckGroup> findAll();

}
